import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;


public class Dfdfewf {
    static FileWriter fw=null;
	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		int hexStr =0xFFFFEC78;
	//	String[] s={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
		String[] s={"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33"};
		ArrayList<String> list = new ArrayList<String>();
		for(int i=0;i<s.length;i++){
			list.add(s[i]);		
		}
		fw=new FileWriter("bbb.txt");
		   te(26,list,0);
		fw.flush();
		fw.close();
		
	}
	public static void te(int nn,ArrayList<String> list,int ii) throws IOException{
		if(nn>0){			
			for(int i=ii;i<list.size();i++){
				ArrayList<String> li=(ArrayList<String>) list.clone();
				li.remove(i);
				if(nn==1){
				   for(int m=0;m<li.size();m++){
                   //  System.out.print(li.get(m));
					   fw.write(li.get(m)+"\t");
                   }
                  // System.out.println("");
				   fw.write("\r\n");
				}			
				te(nn-1,li,i);
			}
		}else{
		    return;
		}
	}
}
